package com.zyh.record.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * t_exam_record实体类
 * @TableName
 */
@TableName(value ="t_exam_record")
public class ExamRecord implements Serializable {
    /**
     * 测评记录表id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id（关联user表）
     */
    private Long userId;

    /**
     * 试卷id（关联paper表）
     */
    private Long paperId;

    /**
     *  assignmentId（关联assignment表）
     */
    private Long assignmentId;

    /**
     * 总分
     */
    private Integer totalScore;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 提交时间（未提交为null）
     */
    private Date submitTime;

    /**
     * 上次开始时间
     */
    private Date lastStartTime;

    /**
     * 总用时
     */
    private Long totalTime;

    /**
     * 测评状态（0进行中，1已结束，2暂停中）
     */
    private String status;

    /**
     * 创建人（关联user表）
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 无效标记（0 有效 2无效）
     */
    private String delFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getPaperId() {
        return paperId;
    }

    public void setPaperId(Long paperId) {
        this.paperId = paperId;
    }

    public Long getAssignmentId() {
        return assignmentId;
    }

    public void setAssignmentId(Long assignmentId) {
        this.assignmentId = assignmentId;
    }

    public Integer getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Integer totalScore) {
        this.totalScore = totalScore;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public Date getLastStartTime() {
        return lastStartTime;
    }

    public void setLastStartTime(Date lastStartTime) {
        this.lastStartTime = lastStartTime;
    }

    public Long getTotalTime() {
        return totalTime;
    }

    public void setTotalTime(Long totalTime) {
        this.totalTime = totalTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "ExamRecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", paperId=" + paperId +
                ", assignmentId=" + assignmentId +
                ", totalScore=" + totalScore +
                ", startTime=" + startTime +
                ", submitTime=" + submitTime +
                ", lastStartTime=" + lastStartTime +
                ", totalTime=" + totalTime +
                ", status='" + status + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}